package com.wangping.processors;

import com.wangping.StringUtils;

/*
 * All non-alphabetic characters are ignored
 */
public class NonalphabeticProcessor extends Processor4List implements IProcessor4List {

	public String process(String str) {
		char[] chars = str.toCharArray();
		for (char c : chars) {
			if(!Character.isAlphabetic(c)){
				int index = str.indexOf(c);
				str = StringUtils.removeCharFromString(str,index);
			}
		}
		return str;
	}


}

